<script>
	import commonModel from 'model/common.js'
	import {XcxToken} from '@/common/xcx_token.js'
	var xcxtoken = new XcxToken();
	export default {
		onLaunch: function() {
			xcxtoken.verify(); //小程序获取token 
			commonModel.get_sys().then(res=>{
				uni.setStorageSync('sys',res.data)
			})
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
	/* color-ui库 */
	@import "colorui/main.css";
	@import "colorui/icon.css";
	@import "colorui/animation.css";
</style>